package org.example.judge.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.judge.mapper.ProblemTagMapper;
import org.example.judge.service.ProblemTagService;
import org.example.judge_pojo.ProblemTag;
import org.example.judge_pojo.Tag;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("ProblemTagServiceImpl")
public class ProblemTagServiceImpl extends ServiceImpl<ProblemTagMapper, ProblemTag> implements ProblemTagService {

    @Override
    public List<Tag> listTags(String problemId) {
        return super.baseMapper.listTagsByProblem(problemId);
    }
}
